/*
 * stroboscope.c
 *
 * Created: 23.06.2012 19:23:18
 *  Author: denis
 */ 

# define F_CPU 11059200UL

#include <avr/io.h>
#include <avr/interrupt.h>


#define cbi(reg,bit)	reg &= ~(_BV(bit))
#define sbi(reg,bit)	reg |= (_BV(bit))

volatile uint8_t i;

ISR(TIMER0_OVF_vect)
{
	i++;
	if(i>1) cbi(PORTB,3);
	else sbi (PORTB,3);
	
	if(i>44) i=0;
}

int main(void)
{
	DDRB = 0xFF;
	TCCR0 = _BV(CS01);
	TIMSK =_BV(TOIE0);

	sei();
	
	
    for(;;)
    {
        //TODO:: Please write your application code 
    }
}